﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CustomerMaster.Master" AutoEventWireup="true"
    CodeBehind="CustomerDetails.aspx.cs" Inherits="WebApp.CustomerDetails" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <%--<style type="text/css">
        .style2
        {
            width: 278px;
            height: 36px;
            text-align: right;
        }
        .style3
        {
            height: 36px;
            text-align: right;
        }
        .style4
        {
            width: 278px;
            height: 31px;
            text-align: right;
        }
        .style5
        {
            height: 31px;
            text-align: right;
        }
        .style6
        {
            height: 32px;
            margin-left: 40px;
            text-align: left;
        }
        .style7
        {
            height: 32px;
            text-align: right;
        }
        #Button1
        {
            width: 100px;
        }
        #Button2
        {
            width: 100px;
        }
        #Button3
        {
            width: 100px;
        }
        .style11
        {
            width: 256px;
            height: 36px;
            text-align: left;
        }
        .style12
        {
            width: 256px;
            height: 31px;
            text-align: left;
        }
        .style13
        {
            height: 32px;
            margin-left: 40px;
        }
        .style15
        {
            height: 32px;
            width: 256px;
            text-align: left;
        }
        .style16
        {
            height: 32px;
            margin-left: 40px;
            text-align: right;
        }
    </style>--%>
    <div style="text-align: center">
        <table style="width: 99%; height: 388px;">
            <tr>
                <td class="style1">
                    &nbsp;<asp:Label ID="Label1" runat="server" ClientIDMode="Static" Text="Customer No"></asp:Label>
                </td>
                <td class="style2">
                    <asp:TextBox ID="txtCustomerNo" runat="server" ClientIDMode="Static" ReadOnly="True"
                        Style="text-align: left">New Customer</asp:TextBox>
                </td>
                <td class="style3">
                    <asp:RequiredFieldValidator ID="RfvCustomerNo" runat="server" ErrorMessage="Please Enter your Customer Id"
                        ControlToValidate="txtCustomerNo" Display="None"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <span style="color: #FF0000; text-align: right;">* </span>&nbsp;
                    <asp:Label ID="Label2" runat="server" ClientIDMode="Static" Text="First Name"></asp:Label>
                </td>
                <td class="style2">
                    <asp:TextBox ID="txtFirstName" runat="server" ClientIDMode="Static"></asp:TextBox>
                </td>
                <td class="style5">
                    <asp:RequiredFieldValidator ID="RfvFirstName" runat="server" ErrorMessage="Please Enter your First Name"
                        ControlToValidate="txtFirstName" Display="None"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <span style="color: #FF0000; text-align: right;">* </span>&nbsp;
                    <asp:Label ID="Label3" runat="server" ClientIDMode="Static" Text="Last Name"></asp:Label>
                </td>
                <td class="style2">
                    <asp:TextBox ID="txtLastName" runat="server" ClientIDMode="Static"></asp:TextBox>
                </td>
                <td class="style7">
                    <asp:RequiredFieldValidator ID="RfvLastName" runat="server" ErrorMessage="Please Enter your Last Name"
                        ControlToValidate="txtLastName" Display="None"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <span style="color: #FF0000; text-align: right;">* </span>&nbsp;
                    <asp:Label ID="Label4" runat="server" ClientIDMode="Static" Text="Email Id"></asp:Label>
                </td>
                <td class="style2">
                    <asp:TextBox ID="txtEmailId" runat="server" ClientIDMode="Static"></asp:TextBox>
                </td>
                <td class="style7">
                    <asp:RequiredFieldValidator ID="RfvEmailId" runat="server" ErrorMessage="Please Enter your Email Id"
                        ControlToValidate="txtEmailId" Display="None"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="ReEmailId" runat="server" ControlToValidate="txtEmailId"
                        ErrorMessage="Enter Valid Formate" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                        Display="None"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <span style="color: #FF0000; text-align: right;">* </span>&nbsp;
                    <asp:Label ID="Label5" runat="server" ClientIDMode="Static" Text="Phone No"></asp:Label>
                </td>
                <td class="style2">
                    <asp:TextBox ID="txtPhoneNo" runat="server" ClientIDMode="Static"></asp:TextBox>
                </td>
                <td class="style7">
                    <asp:RequiredFieldValidator ID="RfvPhoneNo" runat="server" ErrorMessage="Please Enter your Phone No"
                        ControlToValidate="txtEmailId" Display="None"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <span style="color: #FF0000; text-align: right;">* </span>&nbsp;
                    <asp:Label ID="Label6" runat="server" ClientIDMode="Static" Text="Address 1"></asp:Label>
                </td>
                <td class="style2">
                    <asp:TextBox ID="txtAdress1" runat="server" ClientIDMode="Static" Width="206px"></asp:TextBox>
                </td>
                <td class="style7">
                    <asp:RequiredFieldValidator ID="RfvAddress1" runat="server" ErrorMessage="Please Enter your First Address"
                        ControlToValidate="txtAdress1" Display="None"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <span style="color: #FF0000; text-align: right;">* </span>&nbsp;
                    <asp:Label ID="Label7" runat="server" ClientIDMode="Static" Text="Address 2"></asp:Label>
                </td>
                <td class="style2">
                    <asp:TextBox ID="txtAddres2" runat="server" ClientIDMode="Static" Width="206px"></asp:TextBox>
                </td>
                <td class="style7">
                    <asp:RequiredFieldValidator ID="RfvAddress2" runat="server" ErrorMessage="Please Enter your 2nd Address"
                        ControlToValidate="txtAddres2" Display="None"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <span style="color: #FF0000; text-align: right;">* </span>&nbsp;
                    <asp:Label ID="Label8" runat="server" ClientIDMode="Static" Text="City"></asp:Label>
                </td>
                <td class="style2">
                    <asp:TextBox ID="txtCity" runat="server" ClientIDMode="Static"></asp:TextBox>
                </td>
                <td class="style7">
                    <asp:RequiredFieldValidator ID="RfvCity" runat="server" ErrorMessage="Please Enter your City"
                        ControlToValidate="txtCity" Display="None"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <span style="color: #FF0000; text-align: right;">* </span>&nbsp;
                    <asp:Label ID="Label9" runat="server" ClientIDMode="Static" Text="State"></asp:Label>
                </td>
                <td class="style2">
                    <asp:TextBox ID="txtState" runat="server" ClientIDMode="Static"></asp:TextBox>
                </td>
                <td class="style7">
                    <asp:RequiredFieldValidator ID="RfvState" runat="server" ErrorMessage="Please Enter your State"
                        ControlToValidate="txtState" Display="None"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style6" colspan="3">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="style13" colspan="3">
                    <asp:Button ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" Text="Submit" />
                    <asp:Button ID="btnRefresh" runat="server" Text="Refresh" CausesValidation="False"
                        OnClick="btnRefresh_Click" />
                    <asp:Button ID="btnQuit" runat="server" Text="Quit" CausesValidation="False" OnClick="btnQuit_Click" />
                </td>
            </tr>
            <tr>
                <td class="style13" colspan="3">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="style13" colspan="3">
                    <asp:GridView ID="gvCustomer" runat="server" AutoGenerateColumns="False" Width="403px">
                        <Columns>
                            <asp:BoundField DataField="CustomerNo" HeaderText="Customer No" />
                            <asp:BoundField DataField="FirstName" HeaderText="First Name" />
                            <asp:BoundField DataField="LastName" HeaderText="Last Name" />
                            <asp:BoundField DataField="PhoneNo" HeaderText="Phone No" />
                            <asp:BoundField DataField="EmailId" HeaderText="Email Id" />
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="head">
    <style type="text/css">
        .style1
        {
            text-align: right;
        }
        .style2
        {
            text-align: left;
        }
    </style>
</asp:Content>
